import request2 from '@/utils/request2'
import { unionApiUrl } from '../config'
// let unionApiUrl = 'union-producer-server'

export default {
    // 分页查询
    getPageActivityRecord(data, params) {
        return request2({
            url: unionApiUrl + '/activityRecord/getPageActivityRecord', method: 'post', params, data
        })
    },
    // /studio/deleteByPrimaryKey
    // 删除创新工作室
    deleteByPrimaryKey( params) {
        return request2({
            url: unionApiUrl + '/activityRecord/deleteByPrimaryKey', method: 'post', params,
        })
    },
    // 添加创新工作室
    insertSelective(data, params) {
        return request2({
            url: unionApiUrl + '/activityRecord/insertSelective', method: 'post', params, data
        })
    },
    // 修改创新工作室
    updateByPrimaryKeySelective(data, params) {
        return request2({
            url: unionApiUrl + '/activityRecord/updateByPrimaryKeySelective', method: 'post', params, data
        })
    },
    // 获取创新工作室信息
    getActivityRecordById(data, params) {
        return request2({
            url: unionApiUrl + '/activityRecord/getActivityRecordById', method: 'get', params, data
        })
    },
}
